package com.makenv.dao;

import com.makenv.domain.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {

    List<Book> showBookList(@Param("startRow") int startRow,
                             @Param("num") int num, @Param("bookName") String bookName);

    int getBookSum();

    int getSearchBookSum(@Param("bookName") String bookName);

    int insert(Book video);

    int deleteByPrimaryKey(int id);

    int updateByPrimaryKey(Book video);
}
